from page.Page import Page
from selenium import webdriver
import time, pytest


@pytest.fixture(scope='session')
def driver():
    driver = webdriver.Chrome()

    driver.maximize_window()
    yield driver
    driver.quit()



# def open_browser(self, browser_type="Chrome"):
#     if browser_type.lower() == "Chrome":
#         self.driver = webdriver.Chrome()
#     elif browser_type.lower() == "Firefox":
#         self.driver = webdriver.Firefox()
#     elif browser_type.lower() == 'Edge':
#         self.driver = webdriver.Edge()
#     else:
#         print('浏览器不兼容')
#     self.driver.maximize_window()







def test_login(driver):
    po = Page(driver)
    po.luoji_01()
